import request from '@/utils/request'

// 查询用户意见反馈列表
export function listUserOpinion(query) {
  return request({
    url: '/system/userOpinion/list',
    method: 'get',
    params: query
  })
}

// 查询用户意见反馈详细
export function getUserOpinion(id) {
  return request({
    url: '/system/userOpinion/' + id,
    method: 'get'
  })
}

// 新增用户意见反馈
export function addUserOpinion(data) {
  return request({
    url: '/system/userOpinion',
    method: 'post',
    data: data
  })
}

// 修改用户意见反馈
export function updateUserOpinion(data) {
  return request({
    url: '/system/userOpinion',
    method: 'put',
    data: data
  })
}

// 删除用户意见反馈
export function delUserOpinion(id) {
  return request({
    url: '/system/userOpinion/' + id,
    method: 'delete'
  })
}

// 导出用户意见反馈
export function exportUserOpinion(query) {
  return request({
    url: '/system/userOpinion/export',
    method: 'get',
    params: query
  })
}